onSizeChanged

open fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int)

This is called during layout when the size of this view has changed. If you were just added to the view hierarchy, you're called with the old values of 0.

Parameters

w

Current width of this view.

h

Current height of this view.

oldw

Old width of this view.

oldh

Old height of this view.